package com.ktjy.ktmall.entity;

import java.math.BigDecimal;

/**
 * 订单详情实体类，它与t_order_detail表对应
 * @version v1.0
 * @Author 郴州科泰
 * @Create 2024-08-07 - 17:22
 */
public class OrderDetail {
    private int id;
    private int orderId;  // 订单id
    private Order order;  // 订单对象
    private int skuId;  // 商品sku的id
    private SkuItem skuItem; // 商品SKU对象
    private int goodsId;  // 商品id
    private String name;  // 商品名
    private String picture;  // 商品sku的图片地址
    private GoodsItem goods;  // 商品对象
    private String attrsText;  // 商品SKU的商品属性文字
    private BigDecimal curPrice; // 购买时单价
    private int quantity; // 商品的购物数量
    private int enabled;   // 删除标识字段(0-未删除 1-已删除)
    private String createTime;
    private String updateTime;

    public OrderDetail(int id, int orderId, int skuId, int goodsId, String attrsText, int quantity) {
        this.id = id;
        this.orderId = orderId;
        this.skuId = skuId;
        this.goodsId = goodsId;
        this.attrsText = attrsText;
        this.quantity = quantity;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public BigDecimal getCurPrice() {
        return curPrice;
    }

    public void setCurPrice(BigDecimal curPrice) {
        this.curPrice = curPrice;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public int getSkuId() {
        return skuId;
    }

    public void setSkuId(int skuId) {
        this.skuId = skuId;
    }

    public SkuItem getSkuItem() {
        return skuItem;
    }

    public void setSkuItem(SkuItem skuItem) {
        this.skuItem = skuItem;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public GoodsItem getGoods() {
        return goods;
    }

    public void setGoods(GoodsItem goods) {
        this.goods = goods;
    }

    public String getAttrsText() {
        return attrsText;
    }

    public void setAttrsText(String attrsText) {
        this.attrsText = attrsText;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getEnabled() {
        return enabled;
    }

    public void setEnabled(int enabled) {
        this.enabled = enabled;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
